let g:use_message_buffer = v:true

function! bootstrap#message#print(text) abort
    if get(g:, 'use_message_buffer', v:true)
        let message_buffer_name = get(g:, 'message_buffer_name', '*messages*')
        " if !exists('g:message_buffer') || !bufexists(g:message_buffer)
        "     let g:message_buffer = message_buffer_name->bufadd()
        "     call bufload(g:message_buffer)
        "     execute "buffer " . g:message_buffer
			" :setlocal noswapfile
        "     :setlocal buflisted
			" :setlocal buftype=nofile
			" :setlocal bufhidden=hide
        " endif
        " if g:message_buffer > 0
        "     call appendbufline(g:message_buffer, "$", a:text)
        " endif
    else
        let s:NOTIFY = SpaceVim#api#import('notify')
        let s:NOTIFY.notify_max_width = 40
        let s:NOTIFY.timeout = 3000
        call s:NOTIFY.notify(a:text)
    endif
endfunction

